//
//  ChooseLocalCell.swift
//  KPBaseProject
//
//  Created by 孑孓 on 2018/4/3.
//  Copyright © 2018年 Kipp. All rights reserved.
//

import UIKit
import TangramKit

class ChooseLocalCell: UITableViewCell {

    var rootLayout:TGRelativeLayout!
    var localLa : UILabel?

    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code
    }

    override init(style: UITableViewCellStyle, reuseIdentifier: String?) {
        super.init(style: style, reuseIdentifier: reuseIdentifier)
        createView()
    }

    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }

    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

        // Configure the view for the selected state
    }

     fileprivate func createView() {
        let re = TGRelativeLayout()
        re.tg_cacheEstimatedRect = true
        re.tg_width.equal(.fill)
        re.tg_height.equal(50)
        rootLayout = re
        self.contentView.addSubview(re)

        localLa = UILabel.init(text: nil, font: 15.font, textColor: detailTextColor).then {
            $0.tg_left.equal(10)
            $0.tg_top.equal(0)
            $0.tg_height.equal(50)
            $0.tg_width.equal(.fill)
            re.addSubview($0)
        }
    }

}
